#!/bin/sh
gnuplot << EOF
set terminal postscript enhanced color "Helvetica" 16
set output "$1/ber-before.eps"
set auto x
set auto y 
#yrange [0:300]
#set key left top
#set boxwidth 1.5
set grid y
#set xtic rotate by -60 scale 0
set bmargin 4
set ylabel "Bit error rate" font "Helvetica,20"
#set xlabel "" font "Helvetica, 18"
#plot 'lib-benchmark.dat' using 2:xtic(1) ti col fs solid lc rgb "blue", '' u 3 ti col fs solid lc rgb "yellow"
plot '$1/N.ber.dat' using 1:2 title 'naive-$1h' w l lw 2,\
     '$1/S.ber.dat' using 1:2 title 'multiphase-$1h' w l lw 2 




